package UIComponents
{
	import Classes.staticinfo.Language;
	
	import flash.display.Sprite;
	import flash.filters.ColorMatrixFilter;
	import flash.text.TextField;
	
	/** 
	 * @author thy
	 * @version 1.0.0 
	 * 创建时间：Apr 23, 2012 10:52:00 AM 
	 */ 
	public class MaxBuildPanel extends Sprite
	{
		public function MaxBuildPanel()
		{
			
		}
		
		public function setMaxInfo(bulidName:String,lv:int):void
		{
			(this.getChildByName("buildName") as TextField).text=bulidName;
			(this.getChildByName("buildtips") as TextField).text=bulidName+Language.maxLvTip;
			
			for(var i:int=1;i<=lv;i++)
			{
				this.getChildByName("start"+i).visible=true;
			}
		}
		
		public function reset():void
		{
			(this.getChildByName("buildName") as TextField).text="";
			(this.getChildByName("buildtips") as TextField).text="";
			
			for(var i:int=1;i<=5;i++)
			{
				this.getChildByName("start"+i).visible=false;
			}
		}
		
	}
}
